package org.test.web.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MessageTypeResponse {
    @JsonProperty("code")
    public String code;
    @JsonProperty("data")
    public DataEntity data;
    @JsonProperty("message")
    public String message;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataEntity {
        @JsonProperty("list")
        public List<ListEntity> list;

        @Data
        public static class ListEntity {
            @JsonProperty("icon")
            public String icon;
            @JsonProperty("lastMsgId")
            public String lastMsgId;
            @JsonProperty("msgType")
            public String msgType;
            @JsonProperty("sendTime")
            public String sendTime;
            @JsonProperty("title")
            public String title;
            @JsonProperty("typeName")
            public String typeName;
            @JsonProperty("unreadCount")
            public String unreadCount;
        }
    }
}
